/*4:计算器用颜色，品牌，价格等属性，有计算加减乘除以及算一个数立方的方法，
  用oo的思想模拟。*/
package Work0507;

import java.util.Scanner;

public class CalculatorTeat {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		Calculator test = new Calculator();
		System.out.print("输入第一个数：");
		double one = in.nextDouble();
		System.out.print("输入第二个数：");
		double two = in.nextDouble();

		double a = test.jia(one, two);
		double b = test.jian(one, two);
		double c = test.cheng(one, two);
		double d = test.chu(one, two);
		double e = test.liFang(one);
		System.out.println("相加为：" + a + "相减为：" + b + "相乘为：" + c + "相除为：" + d + "立方为：" + e);

	}

}
